package com.boot.main.mapper;

import com.boot.main.entity.ScomShopCart;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface ScomShopCartMapper {
    List<ScomShopCart> getShopCarts(@Param("userId") Long userId);
    Integer getTotalCount();
    Integer saveShopCart(ScomShopCart shopCart);
    Integer updateShopCart(@Param("id") Long id, @Param("num") Integer num);
    Integer deleteShopCart(@Param("id") Long id);
}
